﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class CustDreeBLL : ICustDreeBLL
    {
        private ICustDreeDAL _custDreeDAL;
        public CustDreeBLL(ICustDreeDAL dreeDal)
        {
            _custDreeDAL = dreeDal;
        }

        public void Add(CustDree model)
        {
            _custDreeDAL.Add(model);
        }
        public void Update(CustDree model)
        {
            _custDreeDAL.Update(model);
        }

        public void Delete(int custDreeId)
        {
            _custDreeDAL.Delete(custDreeId);
        }
        public CustDree GetModel(int custDreeId)
        {
            return _custDreeDAL.GetModel(custDreeId);
        }
        public DataTable Query(string strWhere)
        {
            return _custDreeDAL.Query(strWhere);
        }
    }
}